package com.xiyin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiyin.entity.UserOrderView;
import com.xiyin.mapper.UserOrderViewMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserOrderService extends ServiceImpl<UserOrderViewMapper, UserOrderView> {

    @Resource
    private UserOrderViewMapper userOrderViewMapper;

    public List<UserOrderView> getAllUserOrders() {
        return userOrderViewMapper.getAllUserOrders();
    }
}
